package com.example.fw;

import java.util.List;
import com.example.tests.ContactData;
import com.example.utils.SortedListOf;

public class ApplicationModelContacts {
	
	private SortedListOf<ContactData> contacts;
	
	public SortedListOf<ContactData> getContacts() {
		return contacts;
	}
	
	public void setContacts(List<ContactData> contacts) {
		this.contacts = new SortedListOf<ContactData>(contacts);
	}

	public ApplicationModelContacts addContact(ContactData contact) {
		contacts.add(contact);
	  return this;
  }

	public ApplicationModelContacts removeContact(int index) {
		contacts.remove(index);
	  return this;
  }

}
